package org.example.product.Service;

import org.example.product.Entity.Product;
import org.example.product.Mapper.ProductMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class ProductService {

    @Autowired
    private ProductMapper productMapper;

    public List<Product> searchProducts(String category, String keyword) {
        return productMapper.searchProducts(category, keyword);
    }
}